package cn.jiyun.service.impl;

import cn.jiyun.dao.Udao;
import cn.jiyun.pojo.Day3;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UService implements cn.jiyun.service.UService {
    @Autowired
    private Udao udao;

    @Override
    public Page<Day3> findAll(Page<Day3> page1, QueryWrapper<Day3> queryWrapper) {
        return udao.selectPage(page1, queryWrapper);
    }

    @Override
    public void del(Integer id) {
        Day3 day3 = new Day3();
        day3.setId(id);
        day3.setZt("1");
        udao.updateById(day3);
    }
}
